<script setup>
import {onMounted, ref} from "vue";
import eventBus  from '../../event/eventBus.js';
const NAME = '全屏';

const html = document.querySelector('html');
let isFullScreen = false;


onMounted(() => {
    eventBus.on('mapToolBarClick', (data) => {
      if(data == NAME){
          if(isFullScreen){
            document.exitFullscreen();
          }else{
            html.requestFullscreen()
          }

        isFullScreen = !isFullScreen;

      }
    });

});
</script>

<template >
</template>